﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using nsadv.Statistic.Domain;

namespace nsadv.Statistic.Repository
{
	public interface IStatistic
	{
		IEnumerable<BannerPeriodicalRow> BannerPeriodical(Banner banner, Platform platform, Advertiser adv, Place place,
			PeriodicalGroupping groupping, DateTime? from = null, DateTime? to = null);
	}

	public enum PeriodicalGroupping
	{
		Day,
		Week,
		Month
	}

	public class BannerPeriodicalRow
	{
		public int ShowCount { get; set; }
		public int ClickCount { get; set; }
		public int ExpandCount { get; set; }
		public int UniqueClickCount { get; set; }
		public DateTime StartDate { get; set; }
		public int Offset { get; set; }
	}
}
